using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using ServiceStack.DataAnnotations;

namespace MMM.Services.Type
{
    /// <summary>
    /// 委托单位联系人管理
    /// </summary>
    [Serializable]
    [Route("/api/agentlinkman", "POST,PUT")]
    public class AgentLinkman : EntityBase<AgentLinkman>
    {
        /// <summary>
        /// 委托单位Id
        /// </summary>        
        public Guid? AgentId { get; set; }
        /// <summary>
        /// 委托单位名称
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String AgentName { get; set; }
        /// <summary>
        /// 联系人姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        [Index]
        public String LinkmanName { get; set; }
        /// <summary>
        /// 所在部门
        /// </summary>
        [StringLength(50)]
        public String Department { get; set; }
        /// <summary>
        /// 职务
        /// </summary>
        [StringLength(50)]
        public String Position { get; set; }
        /// <summary>
        /// 联系邮箱
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Email { get; set; }
        /// <summary>
        /// 办公电话
        /// </summary>
        [StringLength(50)]
        [Required]
        public String OfficialTel { get; set; }
        /// <summary>
        /// 办公移动电话
        /// </summary>
        [StringLength(50)]
        public String OfficialMobile { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(150)]
        public String Remark { get; set; }

    }
}
